
 
 
<!DOCTYPE html>
<html>
{include file="public/head"}
<body>

{include file="public/nav"}

{include file="public/nav-2"}
<div class="layui-container">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md8">
            <div class="fly-panel"> 
                <div class="fly-panel-title fly-filter"> 
                    <a>消息列表</a> 
                    <a href="#signin" class="layui-hide-sm layui-show-xs-block fly-right" id="LAY_goSignin" style="color: #FF5722;"></a> 
                </div> 
                
            </div>
            <div id="sbghjsdbshgd" class="nyoj-list">
                
            </div>
        </div>
        {include file="public/home-page-side"}
    </div>
</div>
 {include file="public/foot"}
</body>
</html>

<script>
    layui.use('flow', function(){
  var flow = layui.flow;
   var $ = layui.jquery; 
  flow.load({
    elem: '#sbghjsdbshgd' //流加载容器
    ,isAuto:false
    ,done: function(page, next){ //执行下一页的回调
      //模拟数据插入
        $.get("{:url('web/Index/getnewslist')}/"+page, function(res){
        next(res.html, page < res.pages);
        });
        
    }
  });
  
  
});

</script>